package c;

public class Business {

	private IDeviceWriter writer;
	private String string;
	
	public Business() {
		
	}
	
	public Business(IDeviceWriter writer) {
		super();
		this.writer = writer;
	}

	public void setWriter(IDeviceWriter writer) {
		this.writer = writer;
	}
	
	public void setString(String string) {
		this.string = string;
	}

	public void save() {
		writer.saveToDevice();
		System.out.println(string);
	}
	
}
